package com.ruoyi.entry.domain;

import java.math.BigDecimal;

import com.ruoyi.commodity.domain.MCommodity;
import com.ruoyi.warehouse.domain.MWarehouse;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入库管理对象 m_entry
 * 
 * @author ruoyi
 * @date 2024-10-24
 */
public class MEntry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库表id */
    private Long entryId;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long commodityId;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long entryQuantity;

    /** 入库单价 */
    @Excel(name = "入库单价")
    private BigDecimal entryPrice;

    //仓库
    private MWarehouse mWarehouse;

    //商品
    private MCommodity mCommodity;
    public void setMCommodity(MCommodity mCommodity) {
        this.mCommodity = mCommodity;
    }

    public MCommodity getMCommodity() {
        return mCommodity;
    }


    public void setMWarehouse(MWarehouse mWarehouse) {
        this.mWarehouse = mWarehouse;
    }

    public MWarehouse getMWarehouse() {
        return mWarehouse;
    }

    public void setEntryId(Long entryId) 
    {
        this.entryId = entryId;
    }

    public Long getEntryId() 
    {
        return entryId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setEntryQuantity(Long entryQuantity) 
    {
        this.entryQuantity = entryQuantity;
    }

    public Long getEntryQuantity() 
    {
        return entryQuantity;
    }
    public void setEntryPrice(BigDecimal entryPrice) 
    {
        this.entryPrice = entryPrice;
    }

    public BigDecimal getEntryPrice() 
    {
        return entryPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("entryId", getEntryId())
            .append("warehouseId", getWarehouseId())
            .append("commodityId", getCommodityId())
            .append("entryQuantity", getEntryQuantity())
            .append("entryPrice", getEntryPrice())
            .toString();
    }
}
